<script setup>
import { defineProps } from 'vue';
const props = defineProps({
    click:Function,
    title: {
        type: String,
        required: true
    },
    count: {
        type: Number,
        default: 0
    },
    desc: String
});
</script>

<template>
    <div @click="click()">
        <h1>{{ title }}</h1>
        <p>{{ count }}</p>
        <p>{{ desc }}</p>
    </div>
</template>